package com.liberty.zuul.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "liberty-server")
@Component
public interface FeignService {

    @GetMapping("server/hello")
    public String hello(@RequestParam(value = "name") String name);
}
